package com.rainng.coursesystem.controller.admin;

import com.rainng.coursesystem.controller.BaseController;
import com.rainng.coursesystem.model.shitong.*;
import com.rainng.coursesystem.model.vo.response.ResultVO;
import com.rainng.coursesystem.service.CheckFileService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import static com.rainng.coursesystem.model.constant.GeneralReportProjectMap.*;


@Api(tags = "文件识别和校验接口")
@RequestMapping("/v2/file/cache")
@RestController
public class FileCacheController extends BaseController {

    @Resource
    private CheckFileService service;

    //查
    @PostMapping("/read")
    public ResultVO readFileCache(@RequestBody PdfFileCacheVo vo) {
        return service.readFileCache(vo);
    }

    //写
    @PostMapping("/write")
    public ResultVO writeFileCache(@RequestBody PdfFileCacheVo vo) {
        return service.writeFileCache(vo);
    }

    //删
    @PostMapping("/delete")
    public ResultVO deleteFileCache(@RequestBody PdfFileCacheVo vo) {
        return service.deleteFile(vo);
    }


}
